import request from '@/router/axios';
const urlPrefix = '/admin';

export function list(data) {
    return request.post(urlPrefix + '/message_info/list', data);
}
export function create(data) {
    return request.post(urlPrefix + '/message_info/add', data);
}
export function update(data) {
    return request.post(urlPrefix + '/message_info/modify', data);
}
export function removeById(id) {
    return request.post(urlPrefix + '/message_info/delete', {
        id
    });
}
export function removeByIds(ids) {
    return request.post(urlPrefix + '/message_info/batch_delete', {
        ids
    });
}

export function check(id, checkResult, remark) {
    return request.post(urlPrefix + '/message_info/check', {
        id,
        checkResult,
        remark
    });
}
export function batchCheck(id,checkResult,remark) {
    return request.post(urlPrefix + '/message_info/batch_check', {
        id,
        checkResult,
        remark
    });
}

export function modifyStatus(id,status) {
    return request.post(urlPrefix + '/message_info/modify_status', {
        id,
        status
    });
}
export function batchModifyStatus(id,status) {
    return request.post(urlPrefix + '/message_info/batch_modify_status', {
        id,
        status
    });
}
